package com.neu.questionnaire_system.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 统一的返回对象类。
 * @author libo
 * @version 1.0 2022-10-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseEntity {

    //状态码： statusCode
    private String code;
    //内容，具体get或post的内容： elements
    private Object data;
    //状态消息：statusMessages
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
